using System;
using System.Collections.Generic;
using System.Text;
using HeThongDAO;
using System.Data;
using System.Data.OleDb;
using DTO;


namespace HeThongBUS
{
    public class TheLoaiBUS
    {
        public static DataTable LayTatCaTheLoai()
        {
            return HeThongDAO.TheLoaiDAO.SelectAll();
        }
        public static DataTable DocSchema()
        {
            return HeThongDAO.TheLoaiDAO.DocSchema();
        }
        public static void ThemTheLoai(TheLoaiDTO tl)
        {
            TheLoaiDAO.ThemTheLoai(tl);
        }
        public static void CapNhatBang(DataTable dt, string ten_bang)
        {
            TheLoaiDAO.CapNhatBang(dt, ten_bang);
        }
        public static void XoaTheLoai(TheLoaiDTO tl)
        {
            TheLoaiDAO.XoaTheLoai(tl);
        }
        public static void CapNhatTheLoai(TheLoaiDTO tl)
        {
            TheLoaiDAO.CapNhatTheLoai(tl);
        }
    }
}
